import "reflect-metadata"
import { DataSource } from "typeorm"
import { UserEntity } from "./entity/user_entity"
import { videoProjectEntity } from "./entity/videoProject_entity"
import { NodeEntity } from "./entity/node_entity"
import { VideoEntity } from "./entity/video_entity"

export const AppDataSource = new DataSource({
    type: "sqlite",
    database: "./environment/database.sqlite",
    synchronize: true,
    logging: false,
    entities: [UserEntity, videoProjectEntity, NodeEntity, VideoEntity],
    migrations: [],
    subscribers: [],
})
